package com.wolfking.sharding;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;

//@ComponentScan("com.wolfking")
@SpringBootApplication(scanBasePackages = "com.wolfking"
//        , exclude = DataSourceAutoConfiguration.class
)
public class Driver extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(Driver.class);
    }

    public static void main(String[] args) {
        SpringApplication.run(Driver.class, args);
    }
}
